import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import Layui from '@layui/layui-vue'
import '@layui/layui-vue/lib/index.css'

import App from './App.vue'
import router from './router'

const app = createApp(App)
// 导入路由
app.use(router)
// 导入pinia
const pinia = createPinia()
// 使用pinia持久化
pinia.use(piniaPluginPersistedstate)

app.use(pinia).use(Layui).mount('#app')
